<template>
  <div class="dashboard-container">
    <el-card>
      <div slot="header">参会企业</div>
      <div>
        <el-table :data="data" style="width: 100%">
          <el-table-column prop="prop" label="label" width="width">
          </el-table-column>
        </el-table>
      </div>
    </el-card>
  </div>
</template>

<script>
import { jobFairAddCompanyApi } from "@/api/jobFair";
import { mapGetters } from "vuex";
export default {
  data() {
    return {
      jobFairAddCompanyQuery: {
        jobfairId: this.$route.query.id,
        uid: "",
        utype: 2,
      },
    };
  },
  computed: {
    ...mapGetters(["userId"]),
  },
  created() {
    this.jobFairAddCompanyQuery.uid = this.userId;
    console.log(this.$route.query.id);
    this.jobFairAddCompany()
  },
  methods: {
    async jobFairAddCompany() {
      const res = await jobFairAddCompanyApi(this.jobFairAddCompanyQuery);
      console.log(res);
    },
  },
};
</script>

<style scoped>
.dashboard-container {
  padding: 20px;
}
</style>
